<HTML>
<HEAD>
  <STYLE type="text/css">
    H1 {color: black }
    H2 {color: maroon }
    H3 {color: #007090 }
    A.head:link {color: #0060a0 }
    A.head:visited {color: #3040c0 }
    A.head:active {color: white }
    A.head:hover {color: yellow }
    A.red:link {color: red }
    A.red:visited {color: maroon }
    A.red:active {color: yellow }
  </STYLE>
</HEAD>
<TITLE>Magic-8.3 Command Reference</TITLE>
<BODY BACKGROUND=graphics/blpaper.gif>
<H1> <IMG SRC=graphics/magic_title8_3.png ALT="Magic VLSI Layout Tool Version 8.3">
     <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1>

<H2>promptload</H2>
<HR>
Invoke the load-file widget in the GUI version of magic, prompting for
a file to load.
<HR>

<H3>Shortcuts:</H3>
   <BLOCKQUOTE>
      Menu item <B>File->Load layout</B> implements the command
		<B>promptload magic</B>.<BR>
      Menu item <B>File->Read CIF</B> implements the command <B>promptload cif</B>.<BR>
      Menu item <B>File->Read GDS</B> implements the command <B>promptload gds</B>.
   </BLOCKQUOTE>

<H3>Usage:</H3>
   <BLOCKQUOTE>
      <B>promptload</B> <B>magic</B>|<B>cif</B>|<B>gds</B> <BR><BR>
   </BLOCKQUOTE>

<H3>Summary:</H3>
   <BLOCKQUOTE>
      The <B>promptload</B> command handles input of various file formats
      for the GUI layout window in the Tcl-based version of magic when
      invoked with the <B>magic -w</B> option.  The handling is more
      sophisticated than the underlying magic calls.  The <B>gds</B>
      read function will attempt to find the top-level GDS cell and
      load it into the current window.  Likewise, the <B>cif</B> read
      function will name the top-level cell with the root name of the
      file being read.  The <B>magic</B> load will append the path of
      the indicated file to the search path, so that if the file
      makes calls to additional cells in the same directory, they will
      be found and loaded.
   </BLOCKQUOTE>

<H3>Implementation Notes:</H3>
   <BLOCKQUOTE>
      <B>promptload</B> is implemented as a Tcl procedure in the "wrapper"
	script.  It calls the <B>tk_getOpenFile</B> widget in Tk.
   </BLOCKQUOTE>

<H3>See Also:</H3>
   <BLOCKQUOTE>
      <A HREF=promptsave.html><B>promptsave</B></A> <BR>
   </BLOCKQUOTE>

<P><IMG SRC=graphics/line1.gif><P>
<TABLE BORDER=0>
  <TR>
    <TD> <A HREF=commands.html>Return to command index</A>
  </TR>
</TABLE>
<P><I>Last updated:</I> March 7, 2020 at 1:06pm <P>
</BODY>
</HTML>
